package com.example.gyt.service;

import com.example.gyt.dao.MessagesMapper;
import com.example.gyt.dao.UserMapper;
import com.example.gyt.pojo.Messages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessagesService {

    @Autowired
    private MessagesMapper messagesMapper;

    public int deleteByPrimaryKey(String id){
        return messagesMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(Messages record){
        return messagesMapper.insertSelective(record);
    }

    public Messages selectByPrimaryKey(String id){
        return messagesMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Messages record){
        return messagesMapper.updateByPrimaryKeySelective(record);
    }

    public List<Messages> getAllMessagesList(Messages record){
        return messagesMapper.getAllMessagesList(record);
    }

    public int queryCountLike(Messages record){
        return messagesMapper.queryCountLike(record);
    }
}
